<template>
  <div class="root">
    <!--头部-->
    <div class="header"></div>
    <!--功能列表-->
    <div class="nav">
      <div class="item" @click="pur">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi" />
        <div>采购管理</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi" />
        <div>出货管理</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi" />
        <div>仓库管理</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi" />
        <div>客户订单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi" />
        <div>新增采购单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi" />
        <div>新增出货单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi" />
        <div>新增客户</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi" />
        <div>收款单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi" />
        <div>付款单</div>
      </div>
    </div>

    <!--底部导航栏组件-->
    <Nav></Nav>
  </div>

</template>

<script setup>
import {useRouter} from 'vue-router'
import Nav from '../component/Nav.vue'
//路由实例
const router =  useRouter()

let pur = ()=>{
  router.push("/purchase")
}
</script>

<style scoped>
.root {
  width: 7.5rem;
  background-color: #f1f1f1;
}
.header {
  background-color: #15acfa;
  height: 4rem;
}

.nav {
  width: 7.2rem;
  background-color: #fff;
  margin: 0.1rem auto;
  display: flex;
  flex-wrap: wrap;
}
.item {
  width: 1.76rem;
  height: 1.76rem;
  border-bottom: #e1e1e1 solid 1px;
  border-right: #e1e1e1 solid 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.fwi {
  color: #aaa;
  width: 0.6rem;
  height: 0.6rem;
}
.item div {
  margin-top: 0.1rem;
  color: #999;
  font-size: 0.32rem;
}
</style>
